#ifndef TEST_HPP
#define TEST_HPP

#include <string>
#include "csv.hpp"

struct test_info
{
  int id_;
 // std::string name_;
  int class_id_;
  int modle_id_;
  int x_;
  int y_;
  int z_;

  test_info(): id_(0)
  {

  }
};

class test_info_holder
{
public:
  enum
  {
    column_id = 0,
    column_class_id,
    column_modle_id,
    column_x,
    column_y,
    column_z
  };
  test_info_holder(void);
  ~test_info_holder(void);
  bool load(std::string file_name);
  test_info* get_test_info_by_id(int id);

private:
  bool build_test_info_table(csv& c);
  void free_test_info_table();
  

public:
  typedef std::map<int, test_info*> test_info_holder_table;
  test_info_holder_table test_info_table_;
  
};

#endif